home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / DimText 2.0 / ⁄* remarks *⁄.note < prev    next >
Encoding:
Text File  |  1994-05-14  |  878 b   |  21 lines  |  [TEXT/KAHL]

  1. Part of the process of dimming an editable text item is to change
  2. it to a static text item.  This can change the appearance of the
  3. text, if there is too much text for the width of the item. The
  4. reason is that the current editable item is drawn by TextEdit,
  5. using a destRect twice as wide as the viewRect, whereas static text
  6. items and inactive editable text items are drawn using TextBox,
  7. with destRect and viewRect having the same width.  For the same
  8. reason, updating the window can change the appearance of an editable
  9. text item, if it was the active item when originally drawn but
  10. is no longer active.  To see this, run the demo application, and
  11. add some extra text to the two left-hand editText items:
  12.  
  13.   Edit Textmmmm
  14.   More Textmmmm
  15.  
  16. If you leave the insertion point in the lower box, and then click
  17. the Erase & Update button, they will change to
  18.  
  19.   Edit
  20.   More Textmmmm
  21.